<template>
	<view>
		<view class="top">
			<view class="topcode">查询人身份证号：<view class="topphone">410***********3201</view>
			</view>
			<view class="topcode">查询人手机号：<view class="topphone">157****3214</view>
			</view>
		</view>
		<view class="cen">
			<view class="cenContent">
				<view class="cenContentTitle">遗嘱人身份证号</view>
				<input class="cenContentInput" type="idcard" placeholder="请输入" maxlength="18" v-model="codeValue">
			</view>
			<view class="cenContent">
				<view class="cenContentTitle">遗嘱人手机号</view>
				<input class="cenContentInput" type="number" placeholder="请输入" maxlength="11" v-model="phoneValue">
			</view>
		</view>
		<view class="submit" @click="submit">查询</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				codeValue: '', //身份证号
				phoneValue: '' //手机号
			};
		},
		methods: {
			submit() {
				if (!this.codeValue) {
					uni.showToast({
						icon: 'none',
						title: '身份证号不能为空'
					})
				} else if (!this.phoneValue) {
					uni.showToast({
						icon: 'none',
						title: '手机号不能为空'
					})
				} else {
					uni.showToast({
						icon: 'none',
						title: '查询成功'
					})
				}
			}
		},
	}
</script>

<style lang="scss">
	page {
		background-color: #F6F6F6;
	}

	.top {
		background: #FFFFFF;
		padding: 45rpx 22rpx;
		margin: 20rpx 0;

		.topcode {
			font-size: 26rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #666666;
			display: flex;
			justify-content: space-between;
			margin-bottom: 12rpx;

			&:last-child {
				margin-bottom: 0;
			}

			.topphone {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #999999;
			}
		}
	}

	.cen {
		.cenContent {
			.cenContentTitle {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
				margin: 23rpx;
			}

			.cenContentInput {
				height: 96rpx;
				background-color: #FFFFFF;
				padding-left: 23rpx;
				width: 100%;
			}
		}
	}

	.submit {
		width: 705rpx;
		height: 88rpx;
		background: #53B3D9;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		border-radius: 44rpx;
		text-align: center;
		line-height: 88rpx;
		left: 0;
		right: 0;
		margin: 80rpx auto;
	}
</style>
